<p class="Paragraph">Expression: Numeric variables representing a valid 8 bit ASCII value (0-255) or a 16 bit unicode value.</p>
<p class="Paragraph">The <span class="T1">Chr$</span> function is often used to send special control sequences to a printer or other output source. Another use can be, for example, to insert quotation marks in a string expression, which is otherwise problematic in a programming environment since the quote represents the start of a string in <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Basic source text.</p>
<p class="P2">Example:</p>
<p class="PropText">sub ExampleChr</p>
<p class="PropText">REM This example inserts an apostrophe (ASCII value 34) in a string.</p>
<p class="PropText">MsgBox "A "+ Chr$(34)+"short" + Chr$(34)+" trip."</p>
<p class="PropText">REM The printout appears in the dialog as: A "short" trip.</p>